<template>
    <div class="custom-component">
        <!-- <h2>自定义组件练习</h2> -->
        <!-- <cus-notify :content="'我是一个自定义的通知组件'" /> -->
        <el-button size="small" @click="openNotify">打开通知</el-button>
    </div>
</template>

<script>
    export default {
        methods: {
            openNotify() {
                this.$myNotify({
                    content: `我是自定义的通知组件, ${Math.random()}`
                });
            }
        }
    }
</script>

<style lang="scss" scoped>

</style>